//
//  ProgressPlay.h
//  IOSUI思路
//
//  Created by 崔博 on 2018/9/28.
//  Copyright © 2018年 崔博. All rights reserved.
//

#import <Foundation/Foundation.h>
@class ProgressPlay;
#define DURATION 20.0
#define PERIOD 0.5
@protocol ProgressPlayDelegate<NSObject>
- (void) player:(ProgressPlay *)play didReachPosition:(float)position;
- (void) playDidStip:(ProgressPlay *)player;
@end
@interface ProgressPlay : NSObject
{
    NSTimer *_timer;
}
@property (nonatomic, assign) float postion;
@property (nonatomic, weak) id <ProgressPlayDelegate> delegate ;
// 方法
- (void) play;
- (void) pause;
@end
